package com.hotel.daos;

import com.hotel.entitys.Dept;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface DeptMapper {
    //显示

    //删除
    public int deleteDeptBydept_id(Integer dept_id);
    //增加
    public int addDept(Dept dept);
    //修改
    public int updateDept(Dept dept);
    //查询
    public Dept selDeptBydept_id(int dept_id);
    public List<Dept> selectAllDept(@Param("keyWord") String keyWord);
    public List<Dept> selectAllDepts();

    public Dept selectDeptById(Integer dept_id);
}
